<div *ngIf="hero">
    <h2>{{hero.name | uppercase}}详情</h2>
    <div><b><span>编号：</span>{{hero.id}}</b></div>
    <div>
        <label>姓名：</label>
        <input [(ngModel)]="hero.name" placeholder="姓名">
    </div>
    <button (click)="update()">更新</button>
    <button (click)="goBack()">返回</button>

</div>

<div *ngIf="!hero">
    没有对应的英雄
</div>
